<?php 
$zebra=0;
if ($data->num_rows() > 0):
	foreach($data->result_array() as $ch):
?>
	<tr <?php if ($zebra++%2==1):?> class="zebra" <?php endif?> 
		onmouseover="$(this).getElements('input[class:buttonSmall]').setStyle('visibility','visible')"
		onmouseout="$(this).getElements('input[class:buttonSmall]').setStyle('visibility','hidden')">
	<td><?php echo $ch['jbt_id']?></td>
	<td><?php echo $ch['jbt_nama']?></td>
	<td><?php echo $ch['dep_nama']?></td>
	<td><?php echo $ch['jbt_level']?></td>
	<td align="right">
		<input class="buttonSmall" type="button" style="font-size: 14px; visibility:hidden;" value="&#62;" 
			onclick="<?php echo $submit_action?>(<?php $z=0; foreach (explode(",",$return_fields) as $dd): 
				echo ($z>0?"," : "")."'$ch[$dd]'"; $z++;
			endforeach?>)" title="Choose" />
	</td>
	</tr>
<?php 
	endforeach;
else:
?><tr><td align="center" colspan="2">Tidak ada data</td></tr><?php 
endif;